package org.jeecg.flowable.mapper.oa;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.jeecg.flowable.entity.oa.BpmOALeave;

/**
 * 请假申请 Mapper
 *
 * @author jason
 * @author 芋道源码
 */
@Mapper
public interface BpmOALeaveMapper extends BaseMapper<BpmOALeave> {

//    default PageResult<BpmOALeave> selectPage(Long userId, BpmOALeavePageReqVO reqVO) {
//        return selectPage(reqVO, new LambdaQueryWrapper<BpmOALeave>()
//                .eqIfPresent(BpmOALeave::getUserId, userId)
//                .eqIfPresent(BpmOALeave::getResult, reqVO.getResult())
//                .eqIfPresent(BpmOALeave::getType, reqVO.getType())
//                .likeIfPresent(BpmOALeave::getReason, reqVO.getReason())
//                .betweenIfPresent(BpmOALeave::getCreateTime, reqVO.getCreateTime())
//                .orderByDesc(BpmOALeave::getId));
//    }

}
